// import Navigation from "./components/Navigation";
import Head from "./components/admin/Head";
import Home from "./components/admin/Home";
import {Link, NavLink, Redirect, Route, Router, Switch} from "react-router-dom";
import All from "./components/admin/Allproduct";
import React,{Component} from "react";
import Main from "./components/admin/Main";
import LoginRegister from "./components/fore/LoginRegister";


export default class App extends Component {

    render(){
        return (
            <div>

                <Switch>

                    <Route path={"/login"} component={LoginRegister}></Route>
                    <Route path={"/*"} component={Main}></Route>
                    <Redirect to="/login"/>
                </Switch>
            </div>
        );
    }

}